﻿#region Copyright 2008 - Evolution Systems.
//
// Author: José Rogério Ferreira dos Santos(joserogerio.santos@gmail.com)
// Date: 27/04/2009
// Time: 11:57
// All rights are reserved. Reproduction or transmission in whole or in part, in
// any form or by any means, eletronic, mechanical or otherwise, is prohibited
// without the prior written permission of the author.
//
// Filename: ${FILE_NAME}.cs
#endregion
using System;

namespace csharp.rad.general.views
{
	/// <summary>
	/// Description of Company.
	/// </summary>
	public class Company : common.DefaultClass, common.IClass
	{
		public general.Company company = new general.Company();
		public general.Address address = new general.Address();
		public general.Neighborhood neighborhood = new Neighborhood();
		public general.City city = new general.City();
		public general.State state = new general.State();
		public general.Country country = new Country();
	
		#region private declarations
		#endregion
		
		#region properties

		#endregion
		
		public Company()
		{
			gsql.table = "common.v_company";
			_sequence  = "common.v_company_company_id_seq";        
		}
		
		public void clear()
		{
			_id = string.Empty;
		}
		
		public override void get(System.Data.DataRow dr)
		{
			company.get(dr);
			address.get(dr);
			neighborhood.get(dr);
			city.get(dr);
			state.get(dr);
			country.get(dr);
		}
		
		public override void setGsql()
		{

		}			
		
		
	}
}
